export default [
  {
    path: '/project/:projectId?',
    meta: {routeMatch: '/project'},
    component: () => import(/* webpackChunkName: "project-list" */'@/views/layout/router-views'),
    children: [
      {
        path: '',
        meta: {name: '工程信息管理'},
        name: 'project-list',
        component: () => import(/* webpackChunkName: "project-list" */'@/views/monitor/project-list'),
      },
      {
        path: 'home',
        meta: {name: '控制台'},
        name: 'project-home',
        component: () => import(/* webpackChunkName: "work-point-list" */'@/views/data_board/monitor'),
        children: [
          {
            path: '',//path设为空，就是默认展示的看板
            name: 'monitor',
            meta: { name: '自动监测' },
            component: () => import('@/views/data_board/monitor/pages/monitor.vue'),
          },
        ]
      },
      {
        path: 'warning-rule',
        meta: {name: '项目预警判据'},
        name: 'project-warning-item',
        component: () => import(/* webpackChunkName: "monitor-render-wrap" */'@/views/monitor/warning-rule'),
      },
      {
        path: 'info-mgmt',
        meta: {name: '项目预警消息'},
        name: 'info-mgmt',
        component: () => import(/* webpackChunkName: "monitor-render-wrap" */'@/views/monitor/info-mgmt'),
      },

      {
        path: 'warning-phone',
        meta: {name: '项目预警判据'},
        name: 'project-warning-item',
        component: () => import(/* webpackChunkName: "monitor-render-wrap" */'@/views/monitor/warning-phone'),
      },
      {
        path: 'info',
        meta: {name: '项目信息'},
        name: 'monitor',
        component: () => import(/* webpackChunkName: "work-point-list" */'@/views/monitor/project-detail'),
      },
      {
        path: 'map',
        meta: {name: '边坡地图'},
        name: 'project-map',
        component: () => import(/* webpackChunkName: "work-point-list" */'@/views/monitor/work-point-map'),
      },
      {
        path: 'work-point',
        meta: {name: '工点列表'},
        name: 'work-point',
        component: () => import(/* webpackChunkName: "work-point-list" */'@/views/monitor/work-point/list'),
      },
      {
        path: 'probablyEchart',
        meta: {name: '绘图总览'},
        name: 'probably-echart',
        component: () => import(/* webpackChunkName: "work-point-list" */'@/views/monitor/work-point/probably-echarts'),
      },
      {
        path: 'data-share',
        meta: {name: '数据分析'},
        name: 'data-share',
        component: () => import(/* webpackChunkName: "work-point-list" */'@/views/monitor/work-point/monitor_new'),
      },
      {
        path: 'monitor-list',
        meta: {name: '监测点管理'},
        name: 'monitor-list2',
        component: () => import(/* webpackChunkName: "monitor-render-wrap" */'@/views/monitor/monitor-point/list'),
      },
      {
        path: 'work-point/:workPointId',
        meta: {name: '监测点'},
        name: 'work-point-wrap',
        component: () => import(/* webpackChunkName: "monitor-render-wrap" */'@/views/layout/router-views'),
        children: [
          {
            path: '',
            meta: {name: '工点总览'},
            name: 'work-point-home',
            component: () => import(/* webpackChunkName: "monitor-render-wrap" */'@/views/monitor/work-point-home'),
          },
          {
            path: 'complex-echart',
            meta: {name: '综合绘图'},
            name: 'probably-echart',
            component: () => import(/* webpackChunkName: "work-point-list" */'@/views/monitor/monitor-point/complex-echart'),
          },
          {
            path: '3DModel/:showLeft',
            meta: {name: '三维可视化'},
            name: '3DModel',
            component: () => import(/* webpackChunkName: "monitor-render-wrap" */'@/views/monitor/3DModel'),
            children: [
              {
                path: '',//path设为空，就是默认展示的看板
                name: '3DModel',
                meta: { name: '3D模型' },
                component: () => import('@/views/monitor/3D-model/pages/monitor'),
              },
            ]
          },
          {
            path: 'warning-rule',
            meta: {name: '工点预警规则设置'},
            name: 'work-point-item',
            component: () => import(/* webpackChunkName: "monitor-render-wrap" */'@/views/monitor/warning-rule'),
          },
          {
            path: 'monitor-list',
            meta: {name: '监测点管理'},
            name: 'monitor-list',
            component: () => import(/* webpackChunkName: "monitor-render-wrap" */'@/views/monitor/monitor-point/list'),
          },
          {
            path: 'monitor-add',
            meta: {name: '新建监测点'},
            name: 'work-point-item',
            component: () => import(/* webpackChunkName: "monitor-render-wrap" */'@/views/monitor/monitor-point/page-add-edit'),
          },
          {
            path: 'monitor/:type',
            meta: {name: '监测点'},
            name: 'monitor-type',
            component: () => import(/* webpackChunkName: "monitor-render-wrap" */'@/views/monitor/monitor-point/monitor-render-wrap'),
          },
          {
            path: 'complex-echart',
            meta: {name: '综合绘图'},
            name: 'complex-echart',
            component: () => import(/* webpackChunkName: "monitor-render-wrap" */'@/views/monitor/monitor-point/complex-echart'),
          },
        ]
      },
      {
        path: 'inclinator',
        meta: {name: '倾角仪'},
        name: 'inclinator',
        component: () => import(/* webpackChunkName: "work-point-list" */'@/views/monitor/monitor-point/inclinator'),
      },

    ]
  },
  {
    path: '/warning-rules',
    name: 'warning-rules',
    meta: {name: '预警级别设置'},
    component: () => import(/* webpackChunkName: "menu" */'@/views/monitor/warning_rules/warning-rules')
  },
  {
    path: '/info-mgmt',
    meta: {name: '消息管理'},
    name: 'info-mgmt',
    component: () => import(/* webpackChunkName: "work-point-list" */'@/views/monitor/info-mgmt'),
  },
  {
    path: '/monitor-mgmt',
    meta: {name: '监测点管理'},
    name: 'monitor-mgmt',
    component: () => import(/* webpackChunkName: "work-point-list" */'@/views/monitor/monitor-mgmt'),
  },
  {
    path: '/device-mgmt',
    meta: {name: '监测设备管理'},
    name: 'project-device',
    component: () => import(/* webpackChunkName: "work-point-list" */'@/views/monitor/device-mgmt'),
  },
  {
    path: '/vision',
    meta: {name: '数据可视化'},
    name: 'project-device',
    component: () => import(/* webpackChunkName: "work-point-list" */'@/views/data_board/monitor10011/pages/monitor.vue'),
  },
  {
    path: '/pushApis-rule',
    meta: {name: '数据推送'},
    name: 'api-push-rule',
    component: () => import(/* webpackChunkName: "monitor-render-wrap" */'@/views/monitor/api-push-rule'),
  },
]
